package com.ly.mybatis.service.impl;

import com.ly.mybatis.entity.Meal;
import com.ly.mybatis.mapper.MealMapper;
import com.ly.mybatis.service.MealService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ly
 * @since 2021-01-20
 */
@Service
public class MealServiceImpl extends ServiceImpl<MealMapper, Meal> implements MealService {


    @Override
    public List<Meal> selectByMealParamter(String name, Integer type, Double priceMin, Double priceMax) {
        return baseMapper.selectByMealParamter(name,type,priceMin,priceMax);
    }

    @Override
    public List<Meal> selectByType(int i) {
        return baseMapper.selectByType(i);
    }

    @Override
    public List<Meal> selectByTypes(List<Integer> types) {
        return baseMapper.selectByTypes(types);
    }
}
